import request from '@/utils/request'
//登录
export function login(params) {
  return request({
    url: '/userLogin',
    method: 'post',
    params,
  })
}
//修改密码
export function updatePassWordApi(params) {
  return request({
    url: '/updatePassWord',
    method: 'post',
    params,
  })
}

/**
 * 上传图片
 * @param data
 * @returns {*}
 */
export function uploadApi(data) {
  return request({
    url: '/upload',
    method: 'POST',
    data
  })
}

export function logout() {
  return request({
    url: '/vue-admin-template/user/logout',
    method: 'post'
  })
}
